package com.edu.gcu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.edu.gcu.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 积分记录 sys_integral
 *
 * @author luomang
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_integral")
public class SysIntegral extends BaseEntity {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 积分ID
     */
    @TableId(value = "integral_id", type = IdType.AUTO)
    private Long integralId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 积分数
     */
    @TableField(value = "integral")
    private Integer integral;

    /**
     * 积分状态（0正常 1冻结 2其他）
     */
    @TableField(value = "status")
    private String status;
}
